<?php
class Arm_Form_Element_Numeric extends Arm_Form_Element_Abstract{

  public function init(){

    $translate  = Zend_Registry::get('Zend_Translate');

    $this       ->addValidator(new Zend_Validate_Regex('/^\d*$/'));
    $this       ->setOptions(array(
      'size'        => 10,
      'onblur'      => 'validateNumber(this.id)',
    ));

    $this->addErrorMessage($translate->_("Número inválido"));
  }
}
